/**
 * 表格配置
 * 操作日志 operate-log
 */
const headerConfig = {
  'operate-log': [
    {
      prop: 'loginName',
      name: '操作人',
      minWidth: 110
    },
    {
      prop: 'operationEvent',
      name: '操作事件',
      minWidth: 120
    },
    {
      prop: 'url',
      name: 'URL',
      minWidth: 110
    },
    {
      prop: 'ip',
      name: 'IP',
      minWidth: 133
    },
    {
      prop: 'costTm',
      name: '耗时(ms)',
      minWidth: 100
    },
    {
      prop: 'device',
      name: '设备',
      minWidth: 110
    },
    {
      prop: 'userAgent',
      name: '环境',
      minWidth: 120
    },
    {
      prop: 'remark',
      name: '描述',
      minWidth: 120
    },
    {
      prop: 'operationTm',
      name: '操作时间',
      minWidth: 155
    },
    {
      name: '操作',
      width: 100,
      fixed: 'right',
      thStyle: { 'text-align': 'left' },
      operateList: [
        {
          type: 'btnText',
          label: '详情',
          id: 'operate-log-detail',
          authId: 'grass-core:operationLog:search',
          config: {
            type: 'text'
          },
          style: {
            color: 'rgb(219,139,57)'
          }
        }
      ]
    }
  ]
}

export default {}
export { headerConfig }
